﻿<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org"><HEAD><META content="IE=11.0000"
http-equiv="X-UA-Compatible">
 
<META http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<TITLE>参与投票</TITLE> <LINK href="/vote/css/style.css" rel="stylesheet" type="text/css">
<META name="GENERATOR" content="MSHTML 11.00.10586.420"></HEAD> 
<BODY>
<DIV class="wrap" id="header"><IMG src="/vote/images/logo.gif"> </DIV>
<DIV class="wrap" id="navbar">
    <DIV class="profile">您好,<span th:text="${session.user}"></span>
        <SPAN class="return"><A href="/vote/show/1/null">返回列表</A></SPAN>
        <SPAN class="addnew"><A href="/vote/ad" th:if="${session.user=='admin'?true:false}">添加新投票</A></SPAN>
        <SPAN class="modify"><A id="tain" th:if="${session.user=='admin'?true:false}">维护</A></SPAN>
        <SPAN class="return"><A href="/vote/cancellation">注销</A></SPAN></DIV>
    <DIV class="search">
        <FORM action="/vote/show2/1" method="post">
            <INPUT name="title" class="input-text" type="text" th:value="${title}">
            <INPUT name="submit" class="input-button" type="submit" value=""/>
        </FORM>
    </DIV>
</DIV>
<DIV class="wrap" id="vote">
<H2>参与投票</H2>
    <UL class="list">
      <LI th:each="e:${page.records}">
          <H4 th:text="${e.title}"></H4>
          <P class="info"th:text="'共有' +${e.ccount} +'个选项，已有 '+${e.icount}+' 次投票。'"></P>

          <FORM th:action="'/vote/votes/'+${e.sid}" method="post"><INPUT name="entityId" type="hidden" value="1">
              <INPUT name="struts.token.name" type="hidden" value="token">
              <INPUT name="token" type="hidden" value="4UDEDKPAXYKC1PTLWA2OMZGQ925VSGDB">

          <OL>
            <LI th:each="li:${list}">
                <INPUT name="options" th:type="${e.TYPE==0?'checkbox':'radio'}" th:value="${li.i_oid}" th:text="${li.content}">

            </LI>
          </OL>
          <P class="voteView">
              <INPUT type="image" src="/vote/images/button_vote.gif"/>
              <A th:href="'/vote/view/'+${e.sid}">
              <IMG src="/vote/images/button_view.gif"/></A>
          </P>
          </FORM>
      </LI>
    </UL>
</DIV>
<DIV class="wrap" id="footer">	北大青鸟 © 版权所有 </DIV></BODY></HTML>
